import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import index from '@/components/index'
import product from '@/components/product'
import pdControl from '@/components/pdControl'
Vue.use(Router)

export default new Router({
  routes: [
    {
      // 登录页面
      path: '/',
      name: 'Hello',
      component: Hello
    },
    {
      // 商品管理控制
      path: '/product/pdControl',
      name: 'pdControl',
      component: pdControl
    },
    {
      // 管理首页
      path: '/index',
      name: 'index',
      component: index
    },
    {
      //商品管理页面,分类页面
      path: '/product',
      name: 'product',
      component: product
    }
  ]
})
